﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Resources/TPLOAMPage.Master" AutoEventWireup="true"
    CodeBehind="staffsubmitloa.aspx.cs" Inherits="TPLOAWebClient.staffsubmitloa" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="navbarPHolder" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:Button ID="profileBtn" runat="server" Font-Bold="False" OnClick="profileBtn_Click"
        Text="Profile" CssClass="navbtnCSS" CausesValidation="False" />
    <asp:Button ID="viewloaBtn" runat="server" Font-Bold="False" OnClick="viewloaBtn_Click"
        Text="View LOA Status" CssClass="navbtnCSS" CausesValidation="False" />
    <asp:Button ID="submitloaBtn" runat="server" Font-Bold="False" OnClick="submitloaBtn_Click"
        Text="Submit LOA" CssClass="navbtnCSS" CausesValidation="False" />
    <asp:Button ID="faqBtn" runat="server" Font-Bold="False" OnClick="faqBtn_Click" Text="FAQ"
        CssClass="navbtnCSS" CausesValidation="False" />
    <asp:Button ID="otherservicesBtn" runat="server" Font-Bold="False" OnClick="otherservicesBtn_Click"
        Text="Other Services" CssClass="navbtnCSS" CausesValidation="False" />
    <asp:Button ID="LogoutBtn" runat="server" Font-Bold="False" OnClick="LogoutBtn_Click"
        Text="Logout" CssClass="navbtnCSS" CausesValidation="False" />
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="sectionTitlePHolder" runat="server">
    Submit LOA
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="mainContentPHolder" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table>
                <tr>
                    <td colspan="2">
                        For Current Student
                        <asp:DropDownList ID="DropDownList1" runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>From*</strong>
                    </td>
                    <td>
                        <asp:DropDownList ID="monthfromDdl" runat="server" OnSelectedIndexChanged="monthfromDdl_SelectedIndexChanged"
                            AutoPostBack="True">
                            <asp:ListItem Value="0">Month</asp:ListItem>
                        </asp:DropDownList>
                        <asp:DropDownList ID="dayfromDdl" runat="server" Enabled="False">
                            <asp:ListItem Value="0">Day</asp:ListItem>
                        </asp:DropDownList>
                        <asp:DropDownList ID="yearfromDdl" runat="server" Enabled="False">
                            <asp:ListItem Value="0">Year</asp:ListItem>
                        </asp:DropDownList>
                        &nbsp;(Date)
                        <asp:DropDownList ID="timefromDdl" runat="server">
                            <asp:ListItem Value="0">Time</asp:ListItem>
                        </asp:DropDownList>
                        &nbsp;(Time)
                        <asp:CustomValidator ID="CustomValidator1" runat="server" ErrorMessage="Please choose a month first"
                            ForeColor="Red"></asp:CustomValidator>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="dayfromDdl"
                            Display="Dynamic" ErrorMessage="Please choose a day" ForeColor="Red" InitialValue="0"></asp:RequiredFieldValidator>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="monthfromDdl"
                            ErrorMessage="Please choose a month" ForeColor="Red" InitialValue="0"></asp:RequiredFieldValidator>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="yearfromDdl"
                            Display="Dynamic" ErrorMessage="Please choose a year" ForeColor="Red" InitialValue="0"></asp:RequiredFieldValidator>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="timefromDdl"
                            Display="Dynamic" ErrorMessage="Please choose a time" ForeColor="Red" InitialValue="0"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>To*</strong>
                    </td>
                    <td>
                        <asp:DropDownList ID="monthtoDdl" runat="server" OnSelectedIndexChanged="monthtoDdl_SelectedIndexChanged"
                            AutoPostBack="True">
                            <asp:ListItem Value="0">Month</asp:ListItem>
                        </asp:DropDownList>
                        <asp:DropDownList ID="daytoDdl" runat="server" Enabled="False">
                            <asp:ListItem Value="0">Day</asp:ListItem>
                        </asp:DropDownList>
                        <asp:DropDownList ID="yeartoDdl" runat="server" Enabled="False">
                            <asp:ListItem Value="0">Year</asp:ListItem>
                        </asp:DropDownList>
                        &nbsp;(Date)
                        <asp:DropDownList ID="timetoDdl" runat="server">
                            <asp:ListItem Value="0">Time</asp:ListItem>
                        </asp:DropDownList>
                        &nbsp;(Time)
                        <asp:CustomValidator ID="CustomValidator2" runat="server" ErrorMessage="Please choose a month first"
                            ForeColor="Red"></asp:CustomValidator>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="daytoDdl"
                            Display="Dynamic" ErrorMessage="Please choose a day" ForeColor="Red" InitialValue="0"></asp:RequiredFieldValidator>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="monthtoDdl"
                            ErrorMessage="Please choose a month" ForeColor="Red" InitialValue="0"></asp:RequiredFieldValidator>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="yeartoDdl"
                            Display="Dynamic" ErrorMessage="Please choose a year" ForeColor="Red" InitialValue="0"></asp:RequiredFieldValidator>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="timetoDdl"
                            Display="Dynamic" ErrorMessage="Please choose a time" ForeColor="Red" InitialValue="0"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Reason(s)*</strong>
                    </td>
                    <td>
                        <asp:TextBox ID="reasonTbx" runat="server" TextMode="MultiLine" Rows="8" Style="font-family: Segoe UI, Arial, Helvetica"
                            Width="200px" MaxLength="100"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="reasonTbx"
                            ErrorMessage="Please state your reason" ForeColor="Red"></asp:RequiredFieldValidator>
                        <ajaxToolkit:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender2" runat="server"
                            TargetControlID="reasonTbx" WatermarkCssClass="watermarked" WatermarkText="Type the reason here." />
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Graded Assignment(s)* </strong>
                    </td>
                    <td>
                        <asp:RadioButtonList ID="gradedassignmentRbl" runat="server" AutoPostBack="True"
                            OnSelectedIndexChanged="gradedassignmentRbl_SelectedIndexChanged" RepeatDirection="Horizontal"
                            Style="font-family Segoe UI, Arial, Helvetica">
                            <asp:ListItem Selected="True">Yes</asp:ListItem>
                            <asp:ListItem>No</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Panel ID="Panel1" runat="server">
                            <strong>Graded Assignment Details</strong><br />
                            *Please include Subject Name and Lecturer</asp:Panel>
                    </td>
                    <td>
                        <asp:TextBox ID="gradedassignmentTbx" runat="server" TextMode="MultiLine" Width="200px"
                            Style="font-family: Arial" MaxLength="500" Rows="4"></asp:TextBox>
                        <ajaxToolkit:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server"
                            TargetControlID="gradedassignmentTbx" WatermarkCssClass="watermarked" WatermarkText="Type the details here." />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="gradedassignmentTbx"
                            Display="Dynamic" ErrorMessage="Please enter your details on the graded assignments"
                            ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:Button ID="submitBtn" runat="server" Text="Submit" CssClass="btnCSS" OnClick="submitBtn_Click"
                            OnClientClick="return confirm('Confirm Submission?');" />
                        &nbsp;<asp:Label ID="resultLbl" runat="server" ForeColor="Red"></asp:Label>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
